<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<h:head>
		 
</h:head>
<h:body>
	<ui:composition template="/layout/layout.xhtml">	
		<ui:define name="conteudo">		
		<h:form>
				
            <p:panel header="Conta Bancária" toggleable="true">
	            <h:panelGrid>
	                <p:outputLabel for="agencia" value="Agência" />
	                <p:inputText id="agencia" value="#{contaBancariaBean.contaBancaria.agencia}" />					
	                <p:outputLabel for="conta" value="Conta" />
	                <p:inputText id="conta" value="#{contaBancariaBean.contaBancaria.conta}" />
	                <p:outputLabel for="digito" value="Dígito" />
	                <p:inputText id="digito" value="#{contaBancariaBean.contaBancaria.digito}" />
	                <p:outputLabel for="nome" value="Nome" />
	                <p:inputText id="nome" value="#{contaBancariaBean.contaBancaria.nome}" />
	                <p:outputLabel for="saldoInicial" value="Saldo Inicial" />
	                <p:inputText id="saldoInicial" value="#{contaBancariaBean.contaBancaria.saldoInicial}" />
      		      </h:panelGrid>          
            </p:panel>
            
            <div align="center" style="margin-top: 30px;">
            	<p:commandButton value="Salvar" action="#{empresaBean.salvar()}" update="@form" />
            	<p:commandButton value="Voltar"  />
            </div>            		
		    </h:form>
		</ui:define>
	</ui:composition>      
</h:body>
</html>
